﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _12_DataGridView
{
    public class Product
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductID { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 产品是否合格
        /// </summary>
        public bool ProductQualified { get; set; }

        /// <summary>
        /// 所属产品线ID
        /// </summary>
        public int ProductLineID { get; set; }

        public Product()
        {
        }

        public Product(int productID, string productName, bool productQualified, int productLineID)
        {
            ProductID = productID;
            ProductName = productName;
            ProductQualified = productQualified;
            ProductLineID = productLineID;
        }
    }
}
